package org.kl.bf.repository.basic;

import java.util.List;

import org.kl.bf.entity.basic.CodeValues;
import org.kl.bf.repository.BasicRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface CodeValuesDao extends BasicRepository<CodeValues, String>, JpaSpecificationExecutor<CodeValues> {

	public List<CodeValues> findByCodeTableId(String codeTableId);

	public List<CodeValues> findByCodeTableIdAndCodeName(String codeTableId, String codeName);

	public List<CodeValues> findByCodeTableIdAndCodeParentIdIsNull(String codeTableId);

	public List<CodeValues> findByCodeTableIdAndCodeParentIdNotNull(String codeTableId);

	public CodeValues findByCodeValue(String codeValue);

	public List<CodeValues> findByCodeParentId(String codeParentId);
}
